updated command processing

also added the theme command