added doctrine
fixed #2