refactored erlog_int, added callback and implementation for ets and dict