move helper utils in a dedicated file