slight cleanup; fixed to check getattr params that are provided by user