some improvements on deploy configuration