extract() input now takes dictionary input