fabnet 2.0 CA base code
implemented tests and refactored CA code