implemented api transaction scripts in the contextio controller