WIP: debugging resource creation