modded rts.h