use "context" param for callbacks in sync
call function in global context