Migrate pkgs to use resources pkg. Fix #11.