fix some deprecated warnings
control the "bare clone" flag through checkbox