moved util method to apps/app_utils.dart