added functions to search api dock from commandline