fix with external dependencies