bugfix for instances where inputs is specified as a list
bug fix for local mode of execution (previously an assertion was failing)