updated to work with refinerycms 2.*