Check that, Using Funce's solution and if(){}else if(){} I added an action for each file I needed it to serve up and it resolved the errors I'd been seeing and now I shall continue my adventure into making a raspberry pi with a relay control board make my Handicapped Van Wheelchair lift phone controllable.. then I can rule the world from my wheeelchair!!!!!! (Or just make my own custom wheelchair controller... one step at a time....The key issue was my pi will be a secured WAP which I can connect my phone to and use my browser to control the functions of the gpio to activate the relays thus opening the doors, unfolding, folding and raising/lowering the wheelchair lift.. MUAHAHAH.. with enough gpio left over to control 2 more relays Can we say DISCO Lights!! (just kidding about the disco lights)