syncing app_util.erl, going to move to common module