added and merged scripts