implemented attribute auto-loading