minor fix
added command factory