added source tracking for multilayers