Some craft + bugfix in idptr