start to write wrapper for recast

still have compile error, keep calm and fix