eorking reload script. needs testing the last bit which requires first run to complete correctly