fixing 'main' files