more signal handling
allow setting max_concurrent==-1 for auto detection