not loading main twice anymore