added logging functionality -- STILL IN TEST MODE
added logging functionality -- STILL IN TEST MODE
todos