fixed bug && add auto_publish scripts