added reflection and adjusted pcode