WIP: resource generation