everything up to routes