only call stdout methods if available