fixed some nullpointers in RNQuery and added slf4j