cater for trailing line in resource.js