build with dependencies