readded resource:cite function erroneously deleted in last commit