improved bootstrap process