when using biblatex, get error about missing commands from listings

from project.tex:

Extra \fi.
<argument> ...op@@ }\expandafter \@firstofone \fi

from listings:

Undefined control sequence.
<argument> ... \iffalse }{}\lst@ifnumberbychapter

Extra \else.
<argument> ... .\fi \@arabic \c@lstlisting }\else

Command \c@lstlisting already defined.