get parameters in a separate thread