added pip directives + dependencies
smarter way of handling start/stop