many bugs were fixed