dsrails another attempt to get this right