add casting resources support