add intrinsics, closes #26