modify copying static folder method