fix some leaks
only print enabled message when successful