add init() function for easy bootstraping