update to use ruby module