changes to logging

logging added