added get_command and static methods