some more work on hud script