consolidated into one script