bugfixing script