extract hint and add nullable option