make compatable with npm