make before blocks run only when required
fixed blastx/blastp bug