modified deploy to be more flexable