added source maps for improved debugging, added remote function contexts