initialize with optional classname