deal with static files properly