fix crash bugs and push as distribution