move scripts into separated file