mainClassName check was added