solved cap depoly bugs