added files for use with QPIC; fixed a few things