bug in use of defined? and output of local_variables