added some script and fixed some config