prevent crash on 2.3 with dim_status_bar enabled, cleanup unused imports