small fixes for sugar and console
bin