logging now working

still need to add more functionality