finalized core server functionality