implement code/stack backtracking to extract arguments