start work on using js promises for remote execution/return