add source and all attributes