minor changes, fixed bug in manual mode