cleanup of command lines