added init destroy for testing