modifications for non-gui mode operation