added module level variable '_name_' to implement scripted main