moved errors folder into lib for consistency