generate from src instead?