added mediate object to access dynamic attrs