add save-functionality for sources