reorganization of scripts