bug
moving this to an extension file, to modularize
converting to using dot notation