prototype of new ctx solution
moved struct to top
Merge pull request #5 from catalyst-zero/fix-ctx

prototype of new ctx solution