cleanup of args