#236 implement swig instead of jade