working on logging errors properly