flexible fn signatures for remote_execute

Change-Id: I46716920ca5507ef83c2f8660df6ca819da0d402