intial script, appears to be working