this is messy but it gets the job done for now