some modification on resource system
compile now