Revert "extern declarations fix"

This reverts commit ef5db3d508b990ddc58697ae0c67ece77d127ed2.
Removed debug cerrs