another attempt at a reasonably smart resources loader, using toast