added auto generation of sources on build