fix bug
-1 means parameter not set / ignored
ongoing work on on storage clear and intermediate buffering