changed config, moved classes to app/lib