setting and getting a parameter before initialise slave