made main zero modes input more sophisticated