make the initialization script a bit more clever