recover the scala file (moving to a separate PR)