some fixes for ruby generator
server draft