now trains in separate thread