unwrapping cause of ReflectionProviderException

closes #728
there are unused imports here