added support for useSameAxis option