strip trailing '::' as temporary workaround