implement find_commands method