added primitive callbacks support implementation