WIP: resources implementation