ticket:4 function for context proc
Merge pull request #3 from ysokolovsky/t4_contx

ticket:4 function for context proc