remove unused headers, wait sufficient for remote IO