new system of stops and errors handling