fixes registry bug and include error (qpsdhandler)