pass in real_id instead of self
added some logging
typo