complete server side argument validation and better logging