add resolve method for command line variable evaluation