added better static file support