make the public dir work correctly