added autopartial, works apart from invokation step