adding simple logging