fix define and deps