fixed start and stop for java