perform a function

See: avail