fix: issue with misaligned interface and actual function return type