fixing sam bootstrap