supervisor code