inlining an initialization method
fix the handling of hash with array values
remove unused old method
minor changes preparing for further refactoring