tidy to make things suitable for npm