moving staticPath to config