before switch to ruby