improve release and batch scripts