refactor on package supervisor. Support only debian. Fix bugs