stub for generating surrogates. rename source to get_source.