new implementation of static file dir