repo module and some changes for deploy