remove unused arguments for template upload