header -> headerElement
detach function integrated in completed for performance. timeout before callback execution increased from 100 to 120 for robustness