rename function to avoid conflict with get_prefix() in  cli sub-package