exits command and some more tuning