add generic trial options support in core

related to issue #36, #68