defaulting environment if not found in command object.  also updating ngWidApp