improve codebase after #275
improve codebase after #275

youhong316/semaphore,ansible-semaphore/semaphore,youhong316/semaphore,vyulabs/semaphore,youhong316/semaphore,ansible-semaphore/semaphore,ansible-semaphore/semaphore,vyulabs/semaphore,vyulabs/semaphore,ansible-semaphore/semaphore,vyulabs/semaphore,youhong316/semaphore