simple bug catch script