added source metadata in saveSource method