fixed android specific bugs, implemented Console logger