add deploy script for development and fix bugs