track intent info in subprogram environments