fix pin init generator
fix makefile