ADDED feature checking
finished hasfeature
ADDED multisites aware code