use config values
pass big objects as pointers
better error handling; show nicer error page