added manager for handling errors