self-config thru attach api