fix start and stop in bootstrap
a bunch of modifications to work on ubuntu