added MAJOR_HOME, earlier it was environment variable