a simple and robust init replacement