removed unnecessary storage for callback.
changed callback ref table to weak hashtable.