moved some pieces around so this will compile as a framework
removed ns log