clean up
change status code if 404