fixes to prevent warnings in ipn, delete BaseIPN