added feature loading code