init modified for package use