some temple code for net hack