transforms reference styles, closes #139