fix res not being defined
release 0.0.3