patch the scala file