RF: moved setting attributes to outside main __init__ function