Some improved settings for scala