fix scalacOptions and warnings