replaced supervision status by boolean main.