minor changes to position control, and safety flags, and delays