added some methods in LoginBB