changed default mode
various small fixes