move defaults into shared lib directory so we can use it on both client and server side