move out constants
more constants
share constants with server
use user settings for keys