control p almost ready to be segmented into plugin