cutting code in jstypes and config.go