refactoring for indirect map inputs
first shot at a working indirect map input