remove unused args in genApp