refactor, add deploy scripts