work on dynamic input spawning