trying to console log for errors