made deploy script more flexible