used #define for appname