make sure internal helpers are private

and remove a stray debug version