handle ref params.