removed unused modules
catch errors only for logging