implement working member-derivation script