$args($_) ? $self->$_($args{$_}) : $self->$_ or die "Missing variable $_" for qw|resource username|;