init import

copied from original github.com