added static file handling, formatting