add ability to specify axes type and also add groups