added autopartial to most functions