now we can use modem! Also fixed nasty bug