adjust defaults, fix crash on empty data