initialize, moved from https://code.google.com/p/easenet/