Support device scale

issue #23