added naive variable class name resolver