working version of dynamic input

still alpha version