modified api so remote functions receive arguments normally instead of as an array