returning resources actually work for plugins now