refine class method setup