remove kernel functions (move then in utils