added a few more lib functions for remote commands