[m4] cleaned up and added additional scripts