added support for external library daoopt