added and deleted writelines to debug for android