added basic resource handling on rendering side, still need to decide what to return to the actual resource ref