more bug fixes. but output still not being displayed on client side