make npm compatible