init version, forked from myth