broke out script into seperate file