move static code to public dir