added "duration" config option