use constant and correct type
catch broken activity throwing security exception