remove insecurity and create server methods