corrected initialisation of s_emsappl_singleton, removed -1 in second argument of snprintf()