more refactored, serves files from "static"