fix this to use capath instead of info