libds: a list class
libds: begin bg and obj structures