fix empty pipe problem
fix contig import bug, disable buttons