puzzle parsing works, now need php magic