fixed log inits
creates log dirs
consolidated log functions