move helper to make generally available