some small fixe for erb support