added psc init
added most code for the communication