add function to run remote cmd, and return result
minor delint