set object context for callbacks