command parser moved to function