incredibly fucking horrible code and unclear specs