create a gem for this hacky stuff, it's fun.