put sref into separate class