change to resource handler interface.