Replace zep code with common library also used by control node