static file handler, for explicit file handling