split off basic commands into class