add source attribute
closes #577