this is a big pain in the ass