add deploy scripts from im web; and make some minor changes