split server functions from extension