made type_exists for app checking better