gui with preferences dialog
minor debugs