added logging capabilities everywhere :D