added stuff to the apiprocessor class