almost finished init phase implementation