moved code into a public dir