prepare wave packet control; cleanup;