add source attribute
closes #653