added res-type to resource dom