add am ref: http://qiita.com/fmy/items/b92254d14049996f6ec3