ignoring pid file and gem package
code refactor
code refactor
code refactor