resolve deps correctly