added early errors in attach