improve support for different static folder