minor changes to accommodate precommand