got it working, will tidy up commands tomorrow, sleep time