brute forcing the script to work in the most inelegant way imaginable