reorganize scripts