Use fabric as a library