cleanup and automake setup