moving to below stack push. thanks.
Merge pull request #2 from ctava/ct_setup_appcontext_funcs

moving to below stack push. thanks.