fixed static file h handling in env