bump ruby version
refactor server file, removing callbacks