setting up proper logging