changed attachment registration helper