added options to set visibility