added logger library to log errors in log file. still testing