Project is fucked up beyond recover, going to rewrite it from scratch