if this is still broken this function should likely just throw an error.