fix scripts and configuration