fork of https://bitbucket.org/kraythensoft/ecplat