logging implemented, v. 0.3