fixing autoconfig handling

@bartv2 @PVince81 THX