implemented p/p/d and welcome message