split command interpreter into own file