reorganized the way everything works, all pages except index.php are now (probably) totally broken