fixed wombat's script for ha