added some hackety crap that seems to get the job done