allowed main to exist in root