refactored startup to work with all modes of the instrument