changed ResourceImpl and ResourceActivity