reorganizing scala resources