some tweaking for the application name in certain situations