add try around pub getter