updates scripts hierarchy