cleaned up handleUser Script