bugfixes and added min/max duration to autorec