working version, at least for startup ..