this resolves #12 for ckan master, but haven't tested yet for older versions