Adding auto update feature and fixing possible CI build erros