bind memoryhash variables to script