fix crash reason, added options support