debugging for scala match error @ prepared refactorings