Fix compilation errors and don't require serv context in datamanager index method