add some background functions; fix addobj bugs