hacked script nearly finished