fixed some env bugs, started on new funcall

Signed-off-by: Stuart Long <srl51@case.edu>