add function to read and set attribute in connection to console