write configuration and token modules