move  command into module