add to_param def
update to friendly urls