added command functionality