fixed scripts processing