cleaning Arx + fix autoload and config functions