moved deployment part of the script into separate file