fixes paths in server file, removes pages directory