another attempt, similar performance
add necessary files for automake