first pass at scala resource