simplified loading function.  api ready() takes optional id now