logging shouldn't be half of the code..