added new way to init using code from fruit hunt