adding some early-exception handling