parameter server and logging functions
Nicer type generation interface