added code to default dependency type to external if not specified