expand refiner macro
convert inline objects to object methods